From 6ebb9d5ec8073d416a743739dc27108d2649830b Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 12 Aug 2009 14:13:54 +0100 Subject: [PATCH] x86 svm: Fix PAT MSR handling when using Nested Paging. Accesses to the MSR should not be intercepted. Signed-off-by: Christoph Egger Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/svm/vmcb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/x86/hvm/svm/vmcb.c b/xen/arch/x86/hvm/svm/vmcb.c index 7366ecd22b..6f1f087d88 100644 --- a/xen/arch/x86/hvm/svm/vmcb.c +++ b/xen/arch/x86/hvm/svm/vmcb.c @@ -243,6 +243,9 @@ static int construct_vmcb(struct vcpu *v) * that need to be fixed up. */ vmcb->general1_intercepts &= ~GENERAL1_INTERCEPT_INVLPG; + + /* PAT is under complete control of SVM when using nested paging. */ + svm_disable_intercept_for_msr(v, MSR_IA32_CR_PAT); } else { -- 2.30.2